package Testy;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

import Pokero.Scheme;


public class SchemeTest {

	
	@Test
	public void test() {
		int[] expected = new int[5];
		expected[0] = 2;
		expected[1] = 2;
		expected[2] = 3;
		expected[3] = 4;
		expected[4] = 5;
		boolean czyprawda;
		
		czyprawda = Scheme.OnePair(expected);
		assertTrue(czyprawda);
	}
	
	@Test
	public void test1() {
		int[] expected = new int[5];
		expected[0] = 2;
		expected[1] = 2;
		expected[2] = 3;
		expected[3] = 3;
		expected[4] = 4;
		boolean czyprawda;
		
		czyprawda = Scheme.TwoPair(expected);
		assertTrue(czyprawda);
	}
	
	@Test
	public void test3()
	{
		int[] expected = new int[5];
		expected[0] = 2;
		expected[1] = 2;
		expected[2] = 3;
		expected[3] = 3;
		expected[4] = 4;
		boolean czyprawda;
		
		czyprawda = Scheme.fourOfAKind(expected);
		assertFalse(czyprawda);
	}
	
	@Test
	public void Test4()
	{
		int[] expected = new int[5];
		expected[0] = 2;
		expected[1] = 2;
		expected[2] = 2;
		expected[3] = 3;
		expected[4] = 3;
		boolean czyprawda;
		
		czyprawda = Scheme.FullHouse(expected);
		assertTrue(czyprawda);
	}
}
